<?php

class Individual {
	
	public $id;
	public $name;
	public $surname;
	public $photo;
	public $gender;
	public $bdate;
	public $ddate;
	public $notes;

	public $spouse;
	public $child=array();
	
	public function construct($id, $name, $surname, $photo, $gender, $bdate, $ddate, $notes, $spouse, $child) {
		$this->id = $id;
		$this->name = $name;
		$this->surname = $surname;
		$this->photo = $photo;
		$this->gender = $gender;
		$this->bdate = $bdate;
		$this->ddate = $ddate;
		$this->notes = $notes;
		$this->child = $child;
	}
	
	public function addChild($individual) {
		$this->child = $individual;
		
		return true;
	}
	
	public function addSpouse($individual) {
		$this->spouse = $individual;
	}
	
}